#ifndef MAP_H
#define MAP_H

#include "city.h"
#include <QList>

class Map
{
public:
    Map();
    int Read(QString path);

    int count(){return cityList.count();}
    City* getCity(QString name); // 根据城市名获取城市信息

    QList<City*> cityList;   // 用一个数组存储所有的城市
    int** distance;

    friend QDebug &operator<<(QDebug &debug,Map &m);
};
QDebug operator<<(QDebug debug,Map &m);

#endif // MAP_H
